package com.atguigu.spring6.iocxml.di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BookTest {
    public static void main(String[] args) {
        ApplicationContext context =new ClassPathXmlApplicationContext("bean_di.xml");
        Book book = context.getBean("book", Book.class);
        System.out.println("book = " + book);


        Book book1 = context.getBean("bookCon", Book.class);
        System.out.println("book1 = " + book1);
    }
}
